import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index.vue'
import recommend from '@/components/pages/recommend/recommend.vue'
import diantai from '@/components/pages/recommend/diantai.vue'
import mymusic from '@/components/pages/mymusic/mymusic.vue'
import search from '@/components/pages/search/search.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children: [
        {
          path: '',
          name: 'recommend',
          component: recommend,
          children: [
            {
              path: '',
              name: 'diantai',
              component: diantai
            }
          ]
        }, {
          path: '/mymusic',
          name: 'mymusic',
          component: mymusic
        }
      ]
    }, {
      path: '/search',
      name: 'search',
      component: search
    }
  ]
})
